package scheduledtasks.entity;

import java.util.Arrays;


/**
 * 【任务对象]
 *
 * @author tiny
 * @version 1.0
 * @company bc
 * @copyright (c) 2022 bcInc. All rights reserved.
 * @date 2022-11-08 16:00:26
 * @since
 */

public class TaskObj {

    /*任务ID
    *
    * */
    private Integer id;

    /*
    * 方法名
    *
    * */
    public String methoName;


    /*
    * 类名
    *
    * */
    public String className;


    /*
    *
    * 参数  已经抛去
    *
    * */
    private String par[];


    /*
    *
    * 表达式
    * */
    private String cron;


    /*
    * 锁
    *
    * */
    private  Integer  sync;


    /*
    *
    * 执行时间
    *
    * */
    private  Long time;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }


    public Integer getSync() {
        return sync;
    }

    public void setSync(Integer sync) {
        this.sync = sync;
    }

    public String getMethoName() {
        return methoName;
    }

    public void setMethoName(String methoName) {
        this.methoName = methoName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String[] getPar() {
        return par;
    }

    public void setPar(String[] par) {
        this.par = par;
    }


    @Override
    public String toString() {
        return "TaskObj{" +
                "methoName='" + methoName + '\'' +
                ", className='" + className + '\'' +
                ", par=" + Arrays.toString(par) +
                ", cron='" + cron + '\'' +
                ", sync='" + sync + '\'' +
                '}';
    }
}
